<%@ page session="true"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Login Page</title>
</head>
<body>
<form name="f" action="<c:url value='/j_spring_security_check'/>" method="POST">
<span style="float: right">
	<a href="?lang=ko">한국어</a> | <a href="?lang=en">English</a>
</span>
      <table>
		<tr>
		<td colspan='3'>
		<h1>로그인</h1>

		<c:if test="${not empty param.login_error}">
			<font color="red">
			아이디와 비밀번호가 맞지 않습니다. 다시 입력해 주세요<br/>
			<c:out value="${SPRING_SECURITY_LAST_USERNAME}"/><br/>
			</font>
		</c:if>
		</td>
		</tr>
        <tr>
        <td/>
        <td width="350">아이디:<input type='text' name='j_username' value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>'/></td>
        <td/>
        </tr>
        <tr>
        <td/><td>비밀번호:<input type='password' name='j_password'></td></tr>
       <!--  <tr><td><input type="checkbox" name="_spring_security_remember_me"></td>
		<td>2주동안 비빌번호 저장</td></tr> -->
        <tr><td colspan='2'><input name="submit" type="submit" value="Login">
		<input type="button" value="회원가입" ></td><td/></tr>
      </table>
    </form>
</body>
</html>